package cn.wolfcode.cms.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

//系统菜单
@Setter
@Getter
@JsonIgnoreProperties(value = {"handler"})
public class SystemMenu {
    private Long id;
    private String text;
    private String url;
    //父级菜单
    private SystemMenu parent;
    //子菜单
    private List<SystemMenu> children = new ArrayList<>();
    //绑定菜单
    private Permission permission;
}